package com.winit.schedule.core.repository.entity;

import java.io.Serializable;

public class QuartzLogEntity implements Serializable {

    /**
     * 
     */
    private static final long serialVersionUID = -5115286346525872511L;

    private String            logId;

    private String            taskTrackerUuid;

    private String            schedulerInstanceId;

    private String            message;

    private String            cause;

    private long              logTime;

    private QuartzLogType     logType;

    private String            taskGroup;

    public String getLogId() {
        return logId;
    }

    public void setLogId(String logId) {
        this.logId = logId;
    }

    public String getSchedulerInstanceId() {
        return schedulerInstanceId;
    }

    public void setSchedulerInstanceId(String schedulerInstanceId) {
        this.schedulerInstanceId = schedulerInstanceId;
    }

    public String getTaskTrackerUuid() {
        return taskTrackerUuid;
    }

    public void setTaskTrackerUuid(String taskTrackerUuid) {
        this.taskTrackerUuid = taskTrackerUuid;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getCause() {
        return cause;
    }

    public void setCause(String cause) {
        this.cause = cause;
    }

    public long getLogTime() {
        return logTime;
    }

    public void setLogTime(long logTime) {
        this.logTime = logTime;
    }

    public QuartzLogType getLogType() {
        return logType;
    }

    public void setLogType(QuartzLogType logType) {
        this.logType = logType;
    }

    public String getTaskGroup() {
        return taskGroup;
    }

    public void setTaskGroup(String taskGroup) {
        this.taskGroup = taskGroup;
    }

    public enum QuartzLogType {
        PAUSE_TRIGGER, RESUME_TRIGGER, START_TRIGGER, FINALIZED_TRIGGER, //

        SCHEDULER_ERROR, COMMAND_EXE_ERROR, COMMAND_EXE_SUCCESS, //

        SCHEDULER_STARTED, SCHEULER_SHUTDOWN, SCHEDULER_STANDBY; //
    }

}
